﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;

namespace Microserve.TeleEye.Data
{
    public static class SourceDownloader
    {
        public static string GetSource(string sourcePath)
        {
            WebClient webClient = new WebClient();
            byte[] homePage2 = webClient.DownloadData(sourcePath);
            StreamReader sReader = new StreamReader(new MemoryStream(homePage2), Encoding.UTF8);              
            
            return sReader.ReadToEnd();
        }
    }
}
